Added libraries, got code functional with edits