Refactoring nearly all of it and make it faster

At least I hope I maked it faster.. But after I read a few articles it
has to be.