Included filepath validation, returning full filepath, changed log formatting, and other small changes