Fixing Bugs

Testing datasets for finding and fixing bugs. Details con be found on the txt "tested_datasets" in the demo folder