Move debug logger to a separate static class.
Test endianness and make hack for pointer test an argument for constructor.
Remove outdated comment
Remove outdated comment