Added leader writeonly support, and did some minor formatting