cleanup and completeness of the MJS library