remove some lava code and add documentation