Fixed: removed closed,panicln and added append.
Fixed: struct changed from control to storage type.
Fixed: variable initialisation scoping.

Previously all space and commas were matched into a variable
scope, which caused problems with word selection.
Added snippet for if err != nil statement.
Fix gofmt tabs/spaces options