added foundation libraries and changed format