added API lib and .gitignore file