cleans code up a bit, fixes parser for realfag