refactoring and docblocks for ORM
refactoring and commenting on core $argv