Fix incorrect var name
Update BareMetal OS API.md
Add some docs
Updated some docs