clean up use declarations and sort them alphabetically
whitespace cleanup
flesh out permissions