Fixed some small bugs. Added a file-sharing demo