Added readable/writable

readable/writable for files/pipes and sockets now work.
there is still some trouble with vwait not picking up variables set on a readable pipe,
but it works for files and sockets.