implement current_loss and current_ranking
code cleanup, PEP8
add ranking, loss to template (user view)  #7