some comments and restructuring

Signed-off-by: Tolga HOŞGÖR <fasdfasdas@gmail.com>