Adding cron job, formatting code and adding comments