Cleaned up the documentation and reformatted the parameter list of listener creation to be made out of links. Added some comments to the resource declarations in resource.cc to prevent the order of them from being altered.