modularize cmake build system
fix travis script
changed header tests
got header tests working