typo fix and additional functions to be used in later commit
typo fix and additional functions to be used in later commit

chaveiro/emoncms,emoncms/emoncms,emoncms/emoncms,emoncms/emoncms,chaveiro/emoncms,emoncms/emoncms,chaveiro/emoncms,emoncms/emoncms,chaveiro/emoncms