fixed typos
improved fib()