fixed todos
played around with wrapping sourcecode in figures