Add travis and rubocop support

Use rake to test
Add documentation
Some fix