pattern states and connect and dot files

fixes #51
fixes #50
fixes #44
fixes #34
updated CHANGELOG