[api] Added ability to set styles via array. Closes #27