Added test classes, comments and license, code polish, updated readme