added more comments and Tests directory