added leveling, attribute scaling, introduced spellPower, fixed lots of bugs