refactoring kompile -- cont.
reformatting -- done with KompileFrontEnd for now