Cleaned up code, added acknowledgements to README