Crime, Punishment and Jail Time

It really irritates me that the living quarters of inmates are better then those than many enlisted members in our military forces. Here we have people that have refused to live by the rules of our society being treated to a higher standard then the men and women that have volunteered to protect our way of life.
When I was in the Navy I was assigned a bunk in a berthing space. The space was approximately 7 feet by 7 feet and had six bunks in it. Why should prisoners have it any better?
– My Proposals –
1. Reinstate corporal punishment. Rehabilitation is a joke. We need a deterrent. Public flogging, could be such a deterrent. Instead of sitting around watching cable or pumping iron, the convicted criminal is given a number of lashes. Depending on the severity of his crime, he reports back to work/school the next day or the next week. This could go a long way to reduce jail/prison overcrowding. We would also reduce court cost due to appeals. Since in these cases, the punishment could be administered immediately after sentencing.
2. Eliminate guards on the inside of prisons. The people in prisons have, beyond a reasonable doubt, committed crimes thus demonstrating their disregard for our society and the rules by which we have agreed to live. Since their is no place left to banish criminals we still need to provide them with shelter, food and clothing. So isolate them from our society and let them establish their own rules of society without our interference.