Code tidy and added documentation