#396 Fixed Annotation
#396 Moved migrations to lib
#396 Removed unused code
#396 Corrected docblock
#396 Changed DI environment, must be made dynamic though