ml stuff

dumping all the ml stuff I have attempted to understand