fixed many bugs, and improved little things