Added more comments and called function

Added more comments and called function