Slim mem aaf

Reworking AAF into two parts (it was necessary). This solves #44 and allows for further speed improvements.