Added a KEYPATH macro and more comments.