Separated out some functions, renamed functions to be more accurate with their function, sanitized nicks and hashes to be shorter when they are really long (see #7