Added acknowledgments and fixed minor bugs