Re-implemented get_zeros, get_nonzeros, and analyse_to_file to use get_reports. This is way more sensible, should be much faster, and will be far easier to maintain.