Change some SkyEye defines to const ints

This prevents them from interfering with other constants defined in
different namespaces.
Add some documentation to the ResultCode enums