test: Added test framework
test: minors
doc: added draft of main document
doc: added cmake file for tex (should be done better...)

CMakeUserUseLATEX should be used.
doc: used UseLATEX for building latex in cmake
doc: basic definitions added