Add spec to test fib.rb.
Fix errors in methods.
Merge pull request #131 from majjoha/master

Fix errors in code and add matching spec.