Fixed copyright notice
Fixed basic bugs, added initial unit test structure