Replaced include guards with #pragma once, removed unused code