Added support for input and added a few more sample programs.