Update notes for submitted changes

* reorganise code, add ram argument