debian packaging stuff and some cleanup