Updated `NewFile` to accept a file name.
Cleaned up code.
Added package onAppLoad/onAppClose events (ref #166).
Added package GetOutput method (ref #166).