made get_document return a hard_path finished the main function