Update functionality

Added double buffering feature.
Added menu and resources.
Added 'About' and 'Open' functions.
Added scrollbar support.
Added scroll by keyboard support.
Fixed some bugs.
Cleaned coding style.