Kyle contribs

Added several commits to help with your shell script.  I broke the changes into multiple commits, focusing on one area of enhancement at a time to help you decide which bits to merge.  The changes are in 2 major fashions:  1) help reduce errors later, 2) readability/stylistic improvements like removing so many else clauses.

Going to leave this branch open on mine I guess.  I'm really not sure how to handle these branches and pull requests.  I guess I could have merged this into master and had you pull my master?  Anyway, do with these what you will.