Add method for directly editing layer and initialize callback
Clean up typo