general cleanup of documentation and use of temporary files