fixed syntax errors in module, and added test for transpose