Fixed errors

AtlasDaemon now working and tested.