Fixed bug in unit test
Switched build system from autotools to cmake; removed plotting functionality.