Added license to the code
Added documentation and parsing