Fixed bugs with attribute generation, Added main menu