Add sample daemon in comments, remove some unused commented code