final commit

logging code is added. which enable app to create logs and  store them
in a file.