copied over hathi fxns from rmetadata, added man files