Added Sanity Checks

Added the following sanity checks:

Check if EUID is root, else exit
Check if package installation was successful, else ext