added markdown preview and some formatting