Warnings fixes: function declarations. Add functions to gridsite headers, included new headers, ...