Lcg/parser bugs

closes #15 
closes #2 
closes #16