Fixed to work with AMD modules correctly. TODO: some funky errors in parseDoclet module re: duplicate doclets