whitespace formatting and typos
add more tests for ref attributes
whitespace formatting and minor fixes
Merge branch 'master' of github.com:thinkers/ts