added allow while locked option

if enabled, the wake lock will not be released when the screen is locked
