updated serializer with doc, localized urls, and fixed some code by making it cleaner