some part of the code was commented in the last commit :P This is the complete code with a hell lot of errors :P