Coding standard updates

Changed array cast,
Updated function header to include descriptions of parameters