feat: added unit factory
Added a class factory that creates the different units from a given unit type by a string. This class is part of the factory design pattern. It helps greatly when reading from a file because the file reader does not need to check if the read unit type is valid. The factory does. Also added tests.
closes: #16 (closed)
Edited by Carl Gützkow