Added a separate function to get API information from file
Updated API class more