Added a real basic algorithm skeleton code and a lot of todos, fixmes,
and general comments.