Improved directory structure. Added basic build and test scripts.