add "private" modifiers to instance variables
move main frame setup to static method