Added comments, changed order of function calls
Changed fib() function to fib(0)=1.