localize sdf to a single definition
add javadoc
Merge pull request #1118 from dwightguth/localsdf

localize sdf to a single definition