Add @docs, doctests and prepare for hex.pm