Added init() call; fixed newline issue in init()