Fixed compilation and added memContCreate method
reading