working now state switching, LineComments implemented