Added configuration for stream recording and some nice comments.