Moved seed/prime gen's to shared functions+cleaned stuff up