Make GUI more user-friendly

1. Change pointer logic in CommandHistory class
2. Change JFrame initial size