Finished inline documentation for all public members, and made some minor fixes to the regular expressions.