Tutorial frame done and hminima functions has been improved