Fixed $post data by converting to array.
Renamed data sections after globals they are, rather than class names.