added more to init store servelet and fixed purchase function