Updated module

Fixed a bunch of crashing bugs, as well as command interface issues.