Move daemon code to a separate file to notify it of changes easier
Correct spelling