Some general changes and added problem 41 solution.