Edited for first time with Emacs
Refactored code to include functions and added install capability