add docs and refactored the way classes are instantiated
fixed sorting of attributes & array conversion of attribute bound entity
clean up