Improve syntax error message, add 'mhz' and 'ghz', clean up and doc code