renaming hb_api to just hb
Adding OS detection to ejecting