adding non-batch mode
Merge pull request #7 from soumith/nonbatch

adding non-batch mode