(doc): initial doc + refactor variable