Cleaned Code and finished program

cleaned code and finished program. Application functions as designed
and inteneded.