Fix some more porting errors in alignment code

s/remove/delete/ on hash objects.
Merge pull request #6 from DataEverywhere/alignment-fixes

Fix some more porting errors in alignment code