fixed premine; added comments