Add some packages and modify OS class

Add distribution and version stuffs into OS class.

Redirect the installation screen output to files.