Source formatting
Implemented basic preferences