cleaned up code, did some resizing stuff, still need to get it working...