Modified daemon script to an standard one, updated files related