Return angle function added.
changed tabs to spaces