Cleaned Metric interface. Started to write documentation.