Code verification, external clock, tests, etc

Added code verification function
Added support for external clocks
Added travis
Added tests