Some bugfixes. Added Team class.