MVC working

*adding more compatibility with various servers
*making more comments