added a jframe window and some default constructors