Added logging functions; started instruction implementation; added file header comments.