Update complete.R

fixed errors encountered on submit().  Fixed errors per comments.