cleaned code, added doc