added travis-ci support. Started working on unit tests.