Added missing declaration for launchAppStore method.

Also stylistic and spacing changes