working kge.q
made progress on parser, added checking method
fixed kg.e