More functions completed

Have a segfault in one function, need to work on making catenc more generic. But completed 3-4 more functions with tests.