Travis-CI settings, added autotest, unit tests, rebuild class structure