Updated installation script, added dependency checking.