Add test files. Move source code to src folder. Other minor changes.