added logic for lorem ipsum generator; minor style tweaks