updated documentation

added callbacks and input / output file handling. fixed #63