restructure the directory structure

* move library code into src directory
* move tests from Tests to tests directory