forgot to add a few comments. Now others can read the code as well ;)