implemented getPieces() to get piece strings
deleted FileMode, added subclasses for different file modes