mlbrowser: cleaning up and adding some testing