add implementation of LF_CLASS
add implementation of LF_VTSHPAE
start of refactoring