Fixed misspelled "recieve". Marked some internal functions as internal.