bugs in grammar fixed, html generating almost done