Moved tests
Added license; better documentation in header file