Finalized formatting, added some error handling
Added requirements for pip install