Define src as a package
Define the root directory as a package
Add test for matrix and fix directory structure