Fixed instructions in the README.
Added unit test and Travis config.