added modules and initial multi line output functionality