Ending

Ending is now finished. Don't really know what to do next except
structurize the code and make it look neat and add documentation and
that stuff...