implemented variables parsing and comments functions