Completed dec2dms function, added optional rounding parameter to dms2dec and updated demo.