Adding rake file.
Building source files.
Building tests.
Running tests.
Some tidying.