added script boilerplate; added check that mopicli is functional