convert pragma once to include guards
get rid of missleading NULL initializer
harmonize license header text
fix warning and remove useless includes