added notes and prototype from paper. some outdated.