improved format
Update main.rs
Cargo-ify

Fixes #3.