Clean up old functions
Minor changes to tmm.R