New function added

Function which removes characters from the end of string
Restructured some functions

Cleaner look.
Clear distinction for sound effects, between supported types.