Added several problems and fixed some bugs.