Added comments, refactored, remove dead space, organization and ordering. Added to README.