added base classes and stuff
Initial migration, logging and little stuff