Added a unit test.
Fixed debug spacing.
Added vim .swp files to .gitignore
Added a unit test for dereferencing.