added enhanced xhr, added styling, commenting