added spherical unit vector functions
some minor changes to refactor code
Some tidying. Mainly I've the lobe reflection working now.