adding startClosed option; refactoring code; updating readme & manifest