separate update method
cleaned up parser code
handle tags in multiline comments