Copied stuff to IFS.hs and cleaned up Fern.hs by removing unneeded things