Some changes to soundscale.c and cleaning up repo