API Documentation formatting and get user ip function added