Cleaned up code, added pdf papers