fixed style, logger

I only fix this logger for now. I believe we should create a logger
class so every object should be able to use it.