add a simple memory model
fix typo
update a makefile