fix example and change explicitly declared vars to array
remove old `invalid_sentinel`
add exception to rules for assert()
fixed #2 where applicable using solution from `internalAPI.md`