revamped the whole main
fixed typo while printing error
improved doc
fixed compilation issues in go1
added digest command