Adding some comments to pres.css
Modularizing pres.js a little

Now transitions are done through functions; this removes some repetitive code.