refactor application and renderer loop
screen width and height in cmd line
refactor factory into files