Removed some bugs and replaced munge directory.