tidied font-weight rule
added some parsing tests; comments, whitespace and error handling