Tests

Added Testing class and a bunch of tests.
Commented more & changed a few comments to better reflect code.