Rewrote path_exists? & small changes to revision_history