added check to ensure is not accessing an index out of bounds
removed argc from the arguments of run method
updated readme