Fix compilation problems in doc.go
Move main.go to root directory.
main.changeDecoration becomes doc.Decoration.Apply

Remove main.Decoration type; as a distinct type from doc.Decoration,
functions defined on doc.Decoration could not be used on variables
with type main.Decoration (without manual type-casting).