Tidy up

Changed a few things made it more local to the script and easier path changing for the access log