Added version information
Fixed up some things, and added an incomplete chmod.