fixed many typos, errors, and warnings. Finished implementation of Memory16