Fixed a few GCC compatibility issues. Some documentation.