Updating doco and fixing script to daemonize