added some comment
some refactoring and adding a JSplitPane