adds printing, fixes Parser