added more functionality in the applicaiton and refined it. up to 90% is done.