fix indentation (remove tabs, and weird 3 spaces indentation)
follow perl recommendations:

* always 'use warnings'
* 'use parent' instead of base
* declare package variables with our, do not use vars
Don't use a separate default scalar when there's a hash with default key