refined codes and valid and invalid api call documentations added.