improving test coverage for toggle pattern
added initial documentation for toggle pattern
Merge pull request #184 from victor-bortone/master

Toggle pattern improvements