Made the code look like I like it.
First try at a memory implementation.
Fixed error handling.
Merge pull request #67 from JacobLeach/memory

Memory