Posted a big part of the code

Some other parts are still not finished (neither commented), sorry.
They'll be released later.