added info gathering method, and made output prettier.