Added code to check if code completion was sucessfully done
print an error message if commandline arguments are not properly specified