Basic changes, identation and one logic error on the encender function