fixes to clean up the module file for better printing in kindle