updated, cleaned up, and added beginning of notes on tail recursion