Added api class and updated readme