fixed first start crash
Added basic documentation.