branch create, optimize random gen function and rename panning utilities
optimized panning function
merged from branch and added comments