Added comments and error checks to HelperModule