PUT preferences now returns appropriate error messages.
Cleaned up a few reference comments that were no longer needed.
Added API docs.