Initial checkin of training related code
Code for learning the discriminative patches.
Added some doc strings and renames the functions.
added author strings
Added author strings to the files.