Added a switch to strip the api printf implementation Added a write function as alternative to printf.