refactor of major methods, added remaining Lnp methods
finished Lnp, optimze imports