added docstrigns for new functions
removed extraneous send_from_directory