various minor bug fixes, unit tests
remove all flag, seems kinda unecesssary. various tweaks and small bug fixes
many bug fixes, config fallback if none passed in, nesting test improved, unit tests