Notebook Support Added + Re-formatted the code + Fixed Application Crash

Fixes #15 for now.

The application crashes when starting up.. have fixed with a temporary hack.