fixed  error: label at end of compound statement
remove configure as generated for each system with autoconf
fixed malloc redefined
fixed static variable
Code still needs checking for warnings