Fixed 'Generate' bug and added readme