Adding towsp method in W

This PR includes a new method in the W class that allows to easily obtain a WSP object and thus fixes #226