add mode
Merge branch 'groupdot' of https://github.com/rahul003/Theano into groupdot