Added tss_free. Style fixes.