Added more reference docs, cleaned up.