Fixing comments, code flow and bugs to finish Citeulike importing and issue #24