Created return type and fixed some spaces

It should now work without compiler errors :)