Updated for latest frege, support for println, new UI