Bug fix

Fixed some bugs and addes news functions.