fixed memleaks; strict warnings; urldecode