adding error checking and the repository option
adding in build files and docs