Fenced in code blocks
Moved large functions out of header files