See the Procedural Dungeon Generation article on Ranger Sheck's blog for more details.
Room shapes: these are textareas, so feel free to edit them and try out different shapes!