Define compile bin.

Refactor README, init compile script for command line. Start some tests.