added missing return type definition
fixed a couple of nasty typos