Added more comments
More documentation in progras and readme