Added basic log
Changed log format and filled out log functions
Check for source before building it