improved parts of the study app
fixed various bugs
added stats js file