Improved coding and tests. Added a few helper functions
Deleted playground