Cleaned up some of the code in compression.go and align.go