Some old scripts added, fixed stupid bugs made because I wrote codewithout testing