updated all code

BUGS TO FIX:
 - still need to fix the save revision bug
 - CSS colour formatting