Cleaned up and updated the documentation. Also fixed the data cache bug.