Transcribe previous code style to public repo

Also adds instructions to run tests from the test directory.