Added introspector.go for debugging and some more bug fixes.