sw_tidy.default function

Default tidying method