Re-coded in a more modular style
Finished defaultOpen addition.
Bumped version number
Linted and build, ready for travis-ci
Signed-off-by:Clive Walkden <clivewalkden@gmail.com>