updated BUGS and TODO
improved compile-time warnings