Merge 1.0 to master

- Add unit test for functions.
- Update atoum and travis configurations
- Code's improvement with scrutinizer help.