Add find and replace commands and add exception handling(currently swallows exceptions, will add a log system later)