Changed variable names from spanish to english. Added a few more comments.