Added function headers

Added headers to all functions