fixed many visual glitches, many bugfixes