Add command line args and refactor output handling
Add window size arguments