Updated some variable names, and added a reference to the MSDN page on FileStream.