Excpetion handling started. Incorporating logging module. Warning messages printed.