sorted dependencies (#11)
extract constants (#12)
removed print statements
rewrite ui copy
extract ui copy into separate file
split long lines