first commit
made script standalone, not part of spreadsheet anymore.