minor stylistic changes

also added reference to the function sampleUp