Dynamic Constructor from the map file

No more large ugly code, just add to the map file with the class name
as a key and it will build it properly.