Unification of workspace component path

Massimo,

I've changed the code according to your suggestion; I also improved the the bit in audio - I moved the common part to Doc class.

I didn't test the audio part - please do so.