Markov chain monte carlo simulations and their statistical analysis: with web-based fortran code