Code clean up   change system out to LOG

Code review : Daniel Jao