Fixed #51 : Writing unit tests and Travis integrtion.

This patch for travis integration (a platform for continuous integration tests)  and writing all necessary unit tests.

Please this still a Work in progress, DO NOT MERGE !