Added profile loading, comments
Fixed variable error