Thesis implementation pushed even further :)
fixed bug in a4g.js and some refactoring of theses done