Added prime number generator and varios fixes