minor cleanup in functions
minor cleanup in functions

switchinnovations/pxt,switch-education/pxt,Microsoft/pxt,Microsoft/pxt,playi/pxt,playi/pxt,switchinnovations/pxt,Microsoft/pxt,playi/pxt,switch-education/pxt,Microsoft/pxt,playi/pxt,switch-education/pxt,switch-education/pxt,switchinnovations/pxt,switch-education/pxt,Microsoft/pxt,switchinnovations/pxt