ADDED: better sprite support. CHANGED: includes cleaning up