ENH: MLS functions

Ready for review and merge.

Closes #42.