Code cleanup and refactoring. Made the boolean treatment consistent so that it would work when calling from in-app as well
updated costmetics based on Ram's feedback
Merge pull request #74 from sdelements/clean_boolean_configs

Code cleanup and refactoring.