added tests for some functions
keyword passing handling and docs