Script rework, new features added.

Made some modifications to script.
Added optional delay with specific display attached from https://github.com/namtabmai/lightsOn
Added gnome session reset

And some other changes, read the source.