UniqueAnswer fixes

Add some safety checks on variables. Also sneaks a change to ignore .swp vim files.