Documentation and cleaned code added 14.7.14 3:07p.m.