Changed mlg functions to return integers.
fixed booboo in manual