On the canonical module for monomial curves