Added api.go
updated README