added tests for all the functions
fixes to array by reference stuff fixed install scripts
fixes to config and mda for more natural usage
added unit testing and fixed paths