Add cog memory model; Add option to not include any library