Fixed bug in outfile generation.
Fix bug in calculating homology cycle (still don't understand why the
bug was there, possibly a problem with relations).
Fixed bug in hecke action.