Code refactor
Add test, documentation and modify build process
Release 0.3.1