added file check
added installation script