commented the code + some little fixes