Linear and non linear dynamics of drillstrings