Added initial working script
Added documentation