Added JSDOCS and fixed a bug. Removed unique IDs
Implemented tests
Added new test file.