Update bufwrite function
Update unpack script

Add help, verbose, quiet flags that do as their names say.
Add backup_dir, logfile flags that change their respective variables.
Rename the script to unpack to avoid confusion since it uses bash.
Implement log function that will handle script output.
Removed old color functions, color maybe reimplemented later.
Add verbose variable that controls the script verbosity level.