avoid carriage return generate div elements , clean comments an some unused functions