Made a lot of imporvements to pepto.js