Updated metabox functions with extra documentation