Removed a lot of comments. Also last commit:

last commit i forgot to mention. It uses undef %hash and undef @array,
since that may be faster than iterating through everything.