added latest stuff to the docs; added some checking to file ouput