added lagk function and re-roxygenized
add man page for lagk