updated documentation and detailed prompt