Fixed some bugs (thanks, Jeffrey Larson). Made repository structure ready for multi objective and constrained functions.