Tidied up to conform to PSR coding standards/style
Updated removeTracks to use zero-based positions