added support for padding in stdio, changed stdio to use the _write function for STDIO stuff, added unit tests