Added jsoncpp to necessary libraries
Fixed bugs from attribute creation method.