made several functions only used in their file static
changed structure of is_in_snf to use returns and also fixed small bug
removed no longer used random state