getNearTopic added, and various fixes