added documentation (but it needs filling out), wrapper functions for rio writen and readlineb (since those most frequently result in crashes for 404, timeout, connection reset by peer errors)