The present invention relates to thiophene containing compounds of formula (I)wherein m, n, p, q, r, s, R1, R2, and R3 are as defined in the description. Included also are pharmaceutical compositions comprising such compounds, and methods for treating conditions and disorders using such compounds and pharmaceutical compositions.