added docstrings to classes, made simple functions to generate corrupt files