Adds barplot functionality

Changes to barplot implementation file and its associated xib.