fix lastocc scanf, and iter in masking
add jellyfish freq output to test