updated code, commented, changed to fragment.
merged code, updated, added fragments, more commnets.