Add comments, license info and #pragma once