Rewrote core

Rewrote the core for simpler usage, now there aren´t so much functions
which had to be called seperatly any more.
It´s still possible to call all functions seperatly in order to make
your code to execute faster.

Updated the code which used the old core functions.