Add combined top-thirty output, add output file creation, added docstrings