moved the json_encode method to a separate file
updated the CSS for the docs
added the ability to resize