Fix plugin to work with newer Google Spreadsheet API
Fix error on entering nothing for guest code
Standardize code styling and spacing