Cleaned up documentation

Re-wrote documentation in markdown