fixed HTTP stuff, and cleaned up project