Cleaned up code. Implemented Settings activity.