added draw_representation function
added little things in sigmoid