added a bunch of functions 9-30-13 late at night

such as movie sort and text fragment