added more higher level wrappers and tests and a basic CSR class