Added solutions to 9 more problems. Improved functions file.