Added more documentation and removed some things that were only visible for reasons no longer viable.