finished LF and RND and added lots of debugging -MCM