Added startAsMinimized option. Fixes issue #3.