add .idea dir to .gitignore
fix schedule's taking Date object as 'when' argument