Updated tests and README.

Added Travis config.