miner refactoring/cleanup & nested comment mining