changed something to avoid future errors
added somethings to algorithm selector
added somethings
fixed some errors
fixed some bugs
Merge pull request #7 from Academic-KevinRobayna/algorithm

fixed some bugs