Add Javadocs and rename the locked status constant