file re-organization and enforce coding conventions
Merge pull request #6 from JuliaStats/dh/reorg1

file re-organization and enforce coding conventions