Added scaling parameters for adapting magnitudes. Reapply holes to the upper ears.
Started to clean up the code.