updated readme and flattening the api layer
fixed issue with stack reset and api